package com.shark.uh.annotation;

import com.shark.uh.annotation.validator.PasswordValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

@Target({ElementType.FIELD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(validatedBy = {PasswordValidator.class})
public @interface Password {
    String message() default "密码不符合规则";
    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
